<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="box no-border container_0 clearfix">

	<isperp:tree
		title="巡检模板<button onclick='previewTemplate()' style='margin-left:190px;'>预览模板</button>"
		modal="false" id="inspectTemplateTree"  beforeCreateAction="function(){return 'defId=${defId }'}"
		cusEditUrl="task/inspectTemplate/edit"
		cusDeleteUrl="task/inspectTemplate/delete">
		<isperp:async enable="true"
			url="task/inspectTemplate/getTree?defId=${defId }">
		</isperp:async>

		<isperp:edit enable="true" showRemoveBtn="false" showRenameBtn="false"></isperp:edit>
		<isperp:view showTitle="false"
			addHoverDom="true"
			removeHoverDom="true"></isperp:view>
	</isperp:tree>
</div>
<isperp:operate code="COMMON_TREE_HELP"></isperp:operate>

<script type="text/javascript">
	function previewTemplate() {
		isperp.openDialog({
			contentUrl : "task/inspectTemplate/preview?defId=${defId }"
		})
	}
</script>
